<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::group (['middleware' => ['checkLogin']],function(){
	Route::get('/', function () {
		$config=\Modules\Admin\Entities\Module::where('isdefault','=','1')->first();
		$class='Modules\\'.$config['name'].'\Http\Controllers\HomeController';
		return app()->build ($class)->index();
	});
});
Route::get('/resend','ResendEmailController@resend');
Route::get('/sendEmail','ResendEmailController@send');
Route::get('/active/{email_token}','ResendEmailController@active');
Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');
Route::any('/upload','UploadController@upload');
Route::any('/upload-simditor','UploadController@editUpload');